package com.xujie.sportsmeeting.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 成绩趋势VO
 */
@Data
@Schema(description = "成绩趋势信息")
public class ScoreTrendVO {

    @Schema(description = "时间点")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timePoint;

    @Schema(description = "成绩值")
    private String scoreValue;

    @Schema(description = "数值型成绩(用于排序)")
    private BigDecimal numericScore;

    @Schema(description = "运动员姓名")
    private String athleteName;

    @Schema(description = "排名")
    private Integer ranking;

    @Schema(description = "是否最佳成绩")
    private Boolean isBest;

    @Schema(description = "较上次变化")
    private String changeFromLast;

    @Schema(description = "趋势方向")
    private String trendDirection; // up, down, stable
}
